package com.xyb.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class LoginVo {
    public interface IphoneNoLogin{}

    @Pattern(regexp = "^((13[0-9])|(14[5,7,9])|(15([0-3]|[5-9]))|(166)|(17[0,1,3,5,6,7,8])|(18[0-9])|(19[8|9]))\\d{8}$",message = "手机号格式错误",groups = IphoneNoLogin.class)
    private String iphoneNo; // 手机号

    @NotBlank(message = "密码不能为空",groups = IphoneNoLogin.class)
    private String pwd; //密码
    private String verifyCode; //验证码
}
